package com.test.event.service;

import com.test.event.listener.EventListener;

public interface EventService {

    /**
     * 订阅监听器
     *
     * @param serviceName
     * @param listener
     */
    void subscribe(String serviceName, EventListener listener);

    /**
     * 取消订阅监听器
     *
     * @param serviceName
     */
    void unsubscribe(String serviceName);
}
